package com.zhuangjie.order.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.zhuangjie.order.entity.DeliveryInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class DeliveryInfoForRider extends DeliveryInfo {

    @ApiModelProperty(value = "用户id")
    @TableId(value = "user_id", type = IdType.ASSIGN_ID)
    private Long userId;

    @ApiModelProperty(value = "当前店铺订单餐号")
    private Integer currentOrderShopCode;

    @ApiModelProperty("订单创建时间")
    private LocalDateTime orderCreateTime;

    @ApiModelProperty(value = "用户指定的送达时间")
    private LocalDateTime designatedDeliveryTime;

    @ApiModelProperty(value = "估计需要的配送-时长")
    private Integer deliveryDuration;

    @ApiModelProperty("预计送达时间")
    private LocalDateTime estimatedDeliveryTime;
}
